import express from 'express'
import authRoutes from './auth.routes'
import danmakuRoutes from './danmaku.routes'
import followRoutes from './follow.routes'
import notificationRoutes from './notification.routes'
import notificationTemplateRoutes from './notificationTemplate.routes'
import playbackRoutes from './playback.routes'
import rankingRoutes from './ranking.routes'
import roomRoutes from './room.routes'

const router = express.Router()

router.use('/auth', authRoutes)
router.use('/rooms', roomRoutes)
router.use('/follow', followRoutes)
router.use('/playback', playbackRoutes)
router.use('/danmaku', danmakuRoutes)
router.use('/ranking', rankingRoutes)
router.use('/notifications', notificationRoutes)
router.use('/notification-templates', notificationTemplateRoutes)

router.get('/health', (req, res) => {
  res.json({ status: 'ok' })
})

export default router
